/*
 * @Author: Jiraiya
 * @Date: 2020-06-09 18:47:16
 * @LastEditors: Jiraiya
 * @LastEditTime: 2020-06-09 19:12:23
 * @Description: 
 */ 

// import {getOptions} from 'loader-utils';
const {getOptions} = require('loader-utils');
module.exports = function(source){
    const options = getOptions(this);
    console.log(options);
    return source.replace(/\$/g, options.a);
}